﻿using BaseData.Domain;
using System.ComponentModel.DataAnnotations;

namespace BaseData.API.Read.Dtos
{
    public class UserDTO
    {
        /// <summary>
        /// 用户编号
        /// </summary>
        
        public int UserId { get; set; }
        /// <summary>
        /// 用户名
        /// </summary>
        public string? UserName { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        public string? UserPass { get; set; }
        /// <summary>
        /// 昵称
        /// </summary>
        public string? UserNickname { get; set; }
        /// <summary>
        /// 角色编号
        /// </summary>
        public int RoleId { get; set; }
        /// <summary>
        /// 角色名称
        /// </summary>

        public string? RoleName { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public bool Status { get; set; } = false;
        /// <summary>
        /// token令牌
        /// </summary>

        public string? Token { get; set; }

        public List<Permission> Permissions { get; set; }

    }
}
